Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Equivalent of @MailSend on the Web
~James Asaremaroni 27.Jan.04 05:54 PM a Web browser
Applications Development 6.0.2 CF1 All Platforms


PLEASE IGNORE MY PREVIOUS POST. Here is my actual problem.

I am web enabling an existing Lotus notes form. My Submit Action for the web has @Command([FileSave]).

I am calling 2 agents from the WebQuerySave Event. One for Validating the form and one for Submiting the form.The agents give me a type mismatch error. Please Help!!!

The code is as follows...
Validate Form
Sub Initialize
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext

Print "<SCRIPT LANGUAGE=JavaScript>"
Print "alert('Entering agent');"
Print "</SCRIPT>"

If(doc.GetItemValue("AMgr_1") = "") Then
Print "<SCRIPT LANGUAGE=JavaScript>"
Print "alert(\"You must enter the Requester's name!\");"
Print "document.forms[0].AMgr_1.focus();"
Print "</SCRIPT>"
doc.ErrorFlag = 1
continue = False
Exit Sub
End If
If ( doc.GetItemValue( "AMPhone" ) = "" ) Then
Print "<SCRIPT LANGUAGE=JavaScript>"
Print "alert('You must enter a Phone Number for the Requester!');"
Print "document.forms[0].AMPhone.focus();"
Print "</SCRIPT>"
doc.ErrorFlag = 1
continue = False
Exit Sub
End If
End Sub

Agent for Submitting Form
Sub Initialize
Dim session As New NotesSession
Dim maildb As New NotesDatabase( "", "" )
Dim doc As NotesDocument
Set doc = session.DocumentContext

Call maildb.Open( "Domino3/Interactive/West", "mail\internet.nsf" )
Set maildoc = New NotesDocument( maildb )
maildoc.Form = "Memo"
'maildoc.Subject = "Test"
maildoc.Subject = doc.GetItemValue("DocNum") +" has been submitted by " + doc.GetItemValue("AMgr_1")+ "....."
maildoc.Body = " This is an automated reminder for sdr."
maildoc.SendTo = "def"
maildoc.CopyTo = "abc"
Call maildoc.Send(False,maildoc.SendTo)

End Sub




Equivalent of @MailSend on the Web (~James Asaremar... 23.Jan.04)
. . RE: Equivalent of @MailSend on the ... (~Jennifer Ekpon... 23.Jan.04)
. . . . RE: Equivalent of @MailSend on the ... (~James Asaremar... 26.Jan.04)
. . . . . . RE: Equivalent of @MailSend on the ... (~James Asaremar... 27.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS